import 'dart:collection';

import 'package:sample2/model/serialize.dart';

class LoginInfo extends SerializeImp {
  String username = "";
  String password = "";

  LoginInfo({required this.username, required this.password});
  LoginInfo.withUsernamePassword(
      {required this.username, required this.password});

  @override
  Map<String, dynamic> toParameters() {
    Map<String, dynamic> params =
        HashMap.from({"username": username, "password": password});
    return params;
  }
}
